﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="NewUser.aspx.cs" Inherits="NewUser" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>用户注册</title>
    <style type="text/css">
        .auto-style1 {
            height: 28px;
            text-align: right;
        }
        .auto-style2 {
            width: 208px;
            text-align: right;
        }
        .auto-style3 {
            height: 28px;
            width: 208px;
            text-align: left;
        }
        .auto-style4 {
            text-align: right;
        }
        .auto-style5 {
            text-align: center;
        }
        .auto-style6 {
            background-color: #33CC33;
        }
        .auto-style7 {
            width: 208px;
            text-align: left;
        }
        .auto-style8 {
            color: #666666;
        }
    </style>
</head>
<body>
     <p>
        <br />
         <br />
    </p>
    <form id="form1" runat="server">
       <section class="mainbody">
           <div class="auto-style5">
                <img src="image/logo.png" />
               <table align="center">
                   <tr>
                       <td class="auto-style5" colspan="2">
                           注册</td>
                   </tr>
                   <tr>
                       <td class="auto-style4">用户名：</td>
                       <td class="auto-style7" >
                           <asp:TextBox id="txtName" runat="server"></asp:TextBox>
                       </td>
                       <td>
                           <asp:RequiredFieldValidator ControlToValidate="txtName" Display="Dynamic" ForeColor="Red" 
                               ID="rfvName" runat="server" ErrorMessage="必填"></asp:RequiredFieldValidator>
                       </td>
                   </tr>

                   <tr>
                       <td class="auto-style4">密码：</td>
                       <td class="auto-style7" >
                           <asp:TextBox id="txtPwd" runat="server" TextMode="Password"></asp:TextBox>
                       </td>
                       <td>
                           <asp:RequiredFieldValidator ControlToValidate="txtPwd" Display="Dynamic" ForeColor="Red" 
                               ID="RequiredFieldValidator2" runat="server" ErrorMessage="必填"></asp:RequiredFieldValidator>
                       </td>
                   </tr>
                   <tr>
                       <td class="auto-style4">确认密码：</td>
                       <td class="auto-style7" >
                           <asp:TextBox id="txtPwdAgain" runat="server" TextMode="Password"></asp:TextBox>
                       </td>
                       <td>
                           <asp:RequiredFieldValidator ControlToValidate="txtPwdAgain" Display="Dynamic" ForeColor="Red" 
                               ID="RequiredFieldValidator3" runat="server" ErrorMessage="必填"></asp:RequiredFieldValidator>
                       </td>
                   </tr>

                    <tr>
                       <td class="auto-style4" colspan="2">
                           <asp:CompareValidator ControlToValidate="txtPwdAgain" ControlToCompare="txtPwd" 
                               Display="Dynamic" ForeColor="Red" ID="cvPwd" runat="server" 
                               ErrorMessage="2次密码不一致！" ></asp:CompareValidator>
                           
                       </td>
                   </tr> 
                   <tr>
                       <td class="auto-style4">学号：</td>
                       <td class="auto-style7" >
                           <asp:TextBox id="stuNum" runat="server"></asp:TextBox>
                       </td>
                       <td>
                           <asp:RequiredFieldValidator ControlToValidate="stuNum" Display="Dynamic" ForeColor="Red" 
                               ID="RequiredFieldValidator1" runat="server" ErrorMessage="必填"></asp:RequiredFieldValidator>
                       </td>
                   </tr>
                   <tr>
                       <td class="auto-style1">性别：</td>
                       <td class="auto-style3">
                           <asp:RadioButton ID="man" runat="server" Text="男" GroupName="sex" />
                           <asp:RadioButton ID="twomen" runat="server" Text="女" GroupName="sex"/>
                       </td>
                   </tr>
                    
                    <tr>
                       <td class="auto-style4">QQ：</td>
                       <td class="auto-style7" >
                           <asp:TextBox id="txtQQ" runat="server"></asp:TextBox>
                       </td>
                       <td>
                           <asp:RequiredFieldValidator ControlToValidate="txtQQ" Display="Dynamic" ForeColor="Red" 
                               ID="RequiredFieldValidator5" runat="server" ErrorMessage="必填"></asp:RequiredFieldValidator>
                       </td>
                   </tr>
                    <tr>
                       <td class="auto-style4">电话号码：</td>
                       <td class="auto-style7" >
                           <asp:TextBox id="txtNum" runat="server"></asp:TextBox>
                       </td>
                       <td>
                           <asp:RequiredFieldValidator ControlToValidate="txtNum" Display="Dynamic" ForeColor="Red" 
                               ID="RequiredFieldValidator4" runat="server" ErrorMessage="必填"></asp:RequiredFieldValidator>
                       </td>
                   </tr>
                    <tr>
                       <td class="auto-style4">地址：</td>
                       <td class="auto-style7" >
                           <asp:TextBox id="txtAddress" runat="server"></asp:TextBox>
                       </td>
                       <td>
                           <asp:RequiredFieldValidator ControlToValidate="txtAddress" Display="Dynamic" ForeColor="Red" 
                               ID="RequiredFieldValidator6" runat="server" ErrorMessage="必填"></asp:RequiredFieldValidator>
                       </td>
                   </tr> 
                   <tr>
                       <td class="auto-style4" colspan="2">
                           <asp:Button ID="btnReg" runat="server" Text="立即注册" CssClass="auto-style6" OnClick="BtnNewUser_Click"/>
                       </td>
                   </tr>
                   <tr>
                       <td class="auto-style4"><a href="Login.aspx"><span class="auto-style8">我要登录</span></a></td>
                       <td class="auto-style2">
                           <asp:Label ID="lblMsg" runat="server" ForeColor="Red"></asp:Label>
                       </td>
                   </tr>
               </table>
           </div>
           <div class="clear"></div>
       </section>
    </form>
</body>
</html>
